<template>
  <div>
    <el-steps :active="active" finish-status="success" simple class="steps">
      <el-step v-for="(item,index) in stepArray" :title="item.title" :key="index"/>
    </el-steps>
  </div>
</template>

<script>
export default {
  name: 'Step',
  props: {
    active: {
      type: Number,
      default: 1
    },
    stepArray: {
      type: Array,
      default() {
        return this.stepArray
      }
    }
  },
  data() {
    return {
    }
  }
}
</script>

<style lang="scss">
  .steps{
    margin-top:20px;
    // width:1196px;
    width:100%;
    height:50px;
    @media screen and (max-width:1398px) {
      width:100%;
      height:45px;
    }
  }
</style>
